import Layout from '@/layout/index.vue'

const asyncRoutes = [
  {
    path: '/alarm',
    name: ' Alarm',
    component: Layout,
    meta: {
      title: '告警管理',
      icon: 'nav-icon icon-alarm',
      resourceId: 'route:/web/alarm-management/advert/', //todo
    },
    children: [
      {
        path: '/alarm/monitor',
        name: 'Monitor',
        component: () => import('@/views/device/stationList'),
        meta: {
          title: '告警监控',
          resourceId: 'route:/web/alarm-management/advert/', //todo
        },
      },
      {
        path: '/alarm/setting',
        name: 'AlarmSetting',
        component: () => import('@/views/device/stationAdd'),
        meta: {
          title: '告警设置',
          resourceId: 'route:/web/alarm-management/advert/', //todo
        },
      },
      {
        path: '/alarm/edit/:id',
        name: 'AlarmEdit',
        hidden: true,
        component: () => import('@/views/device/stationAdd'),
        meta: {
          title: '编辑告警信息',
          resourceId: 'route:/web/alarm-management/advert/', //todo
        },
      },
      {
        path: '/alarm/notify',
        name: 'AlarmNotify',
        component: () => import('@/views/device/stationAdd'),
        meta: {
          title: '告警通知',
          resourceId: 'route:/web/alarm-management/advert/', //todo
        },
      },
    ],
  },
]
export default asyncRoutes
